package test;

import java.util.Scanner;

public class InternetCafeAccess {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入你的年龄：");
        int age = scanner.nextInt();
        if (age >= 18) {
            System.out.println("可以进入网吧上网。");
        } else {
            System.out.println("不可以进入网吧上网。");
        }
    }
}